package database

import (
	"time"

	"go.mongodb.org/mongo-driver/mongo"
)

type ChatMessages struct {
	SenderUid   uint64    `json:"senderuid"`
	ReceiverUid uint64    `json:"senderuid"`
	MsgContent  string    `json:"msgcontent"`
	CreateTime  time.Time `json:"createtime"` // 用户注册信息更新时间
	Remark      string    `json:"remark`      // 备注信息
}

func (u *ChatMessages) GetCollecton() (*mongo.Collection, error) {
	return GetCollecton(TBLNAME_CHAT_MESSAGES)
}

func (u *ChatMessages) GetTableName() string {
	return TBLNAME_CHAT_MESSAGES
}
